import 'package:flutter/cupertino.dart';

class DAppPageProvider extends ChangeNotifier {
  double scrollNum = 0;
  bool isSet = false;

  listenScrollSetNum(double value) {
    if (value <= 0) {
      if (isSet) {
        isSet = false;
        scrollNum = value;
        notifyListeners();
      }
      return;
    }
    if (value > 0) {
      if (!isSet) {
        scrollNum = value;
        isSet = true;
        notifyListeners();
      }
      return;
    }
  }
}
